package com.hw.dao;

import com.hw.pojo.Areas;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @InterfaceName: AreaDao
 * @Description:
 * @Author: vie0134
 * @Date: 2020-12-15 16:22
 * @Version: 1.0
 **/
@Repository
public interface AreasDao {
    List<Areas> findAllArea(@Param("exludeId") String exludeId, @Param("areaname") String areaname, @Param("status") String status);
    Areas findAreasById(Integer id);
    List<Areas> findAreasByParentId(Integer id);
    List<Areas> findFirstParentAreas(@Param("status") String status);
    void addAreas(Areas areas);
    void updateAreas(Areas areas);
    void deleteAreasById(@Param("id") Integer id);
    void deleteAreasByIds(@Param("ids") List<String> ids);
}
